package com.sainan114.pipelinestudy.mapper;

import com.sainan114.pipelinestudy.model.StrategyDO;
import org.apache.ibatis.annotations.*;

/**
 * @author lgb
 * @Date: 2021/7/10
 */
@Mapper
public interface StrategyMapper {
    @Select("select strategy_name, rule, is_del from strategy_rule where is_del != 'Y' and strategy_name = #{strategyName}")
    @Results({
            @Result(column = "strategy_name", property = "strategyName"),
            @Result(column = "rule", property = "rule"),
            @Result(column = "is_del", property = "isDel")
    })
    StrategyDO queryStrategyByName(@Param("strategyName")String strategyName);
}
